<!doctype html>
<html class="reftest-wait">
    <head>
        <meta charset=utf-8>
        <title>A basic paint worklet test</title>
        <link rel=match href=/_mozilla/mozilla/worklets/test_paint_worklet_ref.html>
    </head>
    <body>
        <div style="height: 100px; width: 100px; background: paint(test);"></div>
    </body>
    <script>
        // This reftest will TIMEOUT if loading the paint worklet fails,
        // It will PASS if the worklet draws a green rectangle.
        CSS.paintWorklet
            .addModule("test_paint_worklet.js")
            .then(function() { document.documentElement.classList.remove("reftest-wait"); });
    </script>
</html>
